<template>
  <div class="box">
    <div class="water"></div>
  </div>
</template>

<script setup lang="ts"></script>

<style lang="scss" scoped>
.box {
  width: 100%;
  height: 100%;
  background-color: #00a8ff;
  display: flex;
  justify-content: center;
  border-radius: 10px;
}
.water {
  width: 300px;
  height: 300px;
  margin-top: 100px;
  /* border: 1px solid #000; */
  border-radius: 29% 71% 70% 30% / 40% 43% 57% 60%;
  box-shadow: inset 10px 20px 30px rgba(0, 0, 0, 0.5), 10px 20px 30px rgba(0, 0, 0, 0.3),
    15px 15px 30px rgba(0, 0, 0, 0.05), inset -10px -00px 15px rgba(255, 255, 255, 0.8);
  position: relative;
  animation: action 5s linear infinite alternate-reverse;
}
.water::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 57% 43% 56% 44% / 28% 50% 50% 72%;
  top: 50px;
  left: 80px;
}
.water::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 57% 43% 56% 44% / 60% 53% 47% 40%;
  top: 50px;
  left: 125px;
}

@keyframes action {
  0%,
  100% {
    border-radius: 29% 71% 70% 30% / 40% 43% 57% 60%;
  }
  25% {
    border-radius: 61% 39% 47% 53% / 33% 64% 36% 67%;
  }
  50% {
    border-radius: 54% 46% 63% 37% / 65% 73% 27% 35%;
  }
  75% {
    border-radius: 54% 46% 63% 37% / 65% 73% 27% 35%;
  }
}
</style>
